<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="ie=edge">
    <title>Document</title>
</head>
<body>
    call apply 改变this指向
    
</body>
</html>
<script>
    function Person(naem, age, sex){
        this.name = name;
        this.age = age;
        this.sex = sex;
    }

    let person = new Person('deng', 30);

    let obj = {}
    Person.call(obj,'cheng',45);


    function Wheel(wheelSize, style){
        this.style = style;
        this.wheelSize = wheelSize;
    }
    function Sit (c, sitColor) {
        this.c= c;
        this.sitColor;
    }
    function Model (height,width,len) {
        this.height = height;
        this.width = width;
        this.len = len;
    }
    function Car (wheelSize, style, c, sitColor, height,width,len) {
        Wheel.call(this,wheelSize,style);
        Sit.apply(this, [c, sitColor]);
        Model.call(this, height, width,len);
        
    }
    let car = new Car(100, '花里胡哨', '真皮','红色', 200, 1900, 1000);
</script>